package io.github.biezhi.elves.model;

import io.github.biezhi.elves.bidding.model.RecordBiddingNoticeDTO;
import lombok.Data;

/**
 * 发标查询条件
 *
 */
@Data
public class BiddingQuery {
	private Long id;
	private String recordId;
	private String title;
	private String noticeDetailUrl;
	private String noticeType;
	private String purchaseMode;
	private String keyword;
	private String pubdate;
	
	public BiddingQuery() {}
	public BiddingQuery(RecordBiddingNoticeDTO recordBiddingNotice) {
		this.id = recordBiddingNotice.getId();
		this.recordId = recordBiddingNotice.getRecordId();
		this.noticeType = recordBiddingNotice.getNoticeType();
		this.purchaseMode = recordBiddingNotice.getPurchaseMode();
		this.keyword = recordBiddingNotice.getKeyword();
		this.pubdate = recordBiddingNotice.getPubdate();
	}
	
	public BiddingQuery(String recordId, String title, String noticeType, String purchaseMode, String pubdate) {
		this.recordId = recordId;
		this.title = title;
		this.noticeType = noticeType;
		this.purchaseMode = purchaseMode;
		this.pubdate = pubdate;
	}

	public BiddingQuery(String recordId, String title, String noticeDetailUrl, String purchaseMode, String keyword, String pubdate) {
		this.recordId = recordId;
		this.title = title;
		this.noticeDetailUrl = noticeDetailUrl;
		this.purchaseMode = purchaseMode;
		this.keyword = keyword;
		this.pubdate = pubdate;
	}
}